<extend name="Base/common"/>
<block name="workclass">
    <div class="worker-list">
</block>
<block name="body">
        <div class="content">
            <!--<div class="item-value">
                <select>
                    <option value="">筛选项目类型</option>
                    <volist name="_types" id="v">
                        <option value="{$v.id}" <if condition="$v['id'] eq $type"> selected </if> >{$v.title}</option>
                    </volist>
                </select>
                <select>
                    <option value="">筛选所属行业</option>
                    <volist name="_industry" id="v">
                        <option value="{$v.id}" <if condition="$v['id'] eq $industry"> selected </if> >{$v.title}</option>
                    </volist>
                </select>
            </div>-->
            <empty name="_lists">
                <p class="remarks">暂无数据</p>
                <else/>
                <p class="remarks">以下项目均经过客户允许公开发布</p>
                <volist name="_lists" id="v">
                    <div class="service-info box">
                        <div class="name">
                            <a href="{:U( 'worker/detail', [ 'id'=> $v['id'] ] )}">{$v.name|default='项目名称暂未确定'}</a>
                            <div class="tag-service">
                                <if condition="$v['bidstate'] eq 1">已完成
                                    <elseif condition="$v['bidstate'] eq 2 && $v['bidtime'] elt 0"/>已截止
                                    <elseif condition="$v['bidstate'] eq 2"/>竞标中
                                    <elseif condition="$v['bidstate'] eq 4"/>工作中
                                    <else/>未中标
                                </if>
                            </div>
                        </div>
                        <div class="recruit">
                            <span>手机 <b style="color: #000;">{$v.linknum|default='未填写'}</b></span><br>
                            <span>联系人 <b style="color: #000;">{$v.linkname|default='匿名'}</b></span>
                        </div>
                        <div class="left-column">
                            <div class="type">
                                <span><i class="iconfont icon-detail-category"></i>&nbsp;雇主类型&nbsp;&nbsp;</span>
                                <if condition="$v['type'] eq 1">个人<elseif condition="$v['type'] eq 2"/>设计院<else/>公司</if>
                            </div>
                            <div class="info info-tag">
                                <span><i class="iconfont icon-tag"></i>&nbsp;预算&nbsp;</span>{$v.budget|default='面议'}元
                            </div>
                            <div class="info info-tag">
                                <span><i class="iconfont icon-calendar"></i>&nbsp;期望周期&nbsp;&nbsp;</span>
                                <if condition="$v['duration'] eq 1">一周内
                                    <elseif condition="$v['duration'] eq 2"/>一月内
                                    <elseif condition="$v['duration'] eq 3"/>三月内
                                    <elseif condition="$v['duration'] eq 4"/>半年内
                                    <else/>不限时间
                                </if>
                            </div>
                        </div>
                        <div class="right-column" style="padding-left:30px;">
                            <div class="info info-tag">
                                <span><i class="iconfont icon-speed"></i>&nbsp;应征人数&nbsp;&nbsp;</span>
                                {$v.urgency|default=13}
                            </div>
                            <div class="info">
                                <span><i class="iconfont icon-time"></i>&nbsp;创建时间&nbsp;</span>
                                {$v.create_time|date='Y-m-d H:i:s', ###}
                            </div>
                        </div>
                        <div class="info info-phone">
                            <span><i class="iconfont icon-phone"></i>&nbsp;联系电话 </span>
                            <a href="tel:{$v.mobile|default='18811013356'}" class="phone-mun"></a>
                        </div>
                        <a href="{:U( 'worker/detail', [ 'id'=> $v['id'] ] )}" class="btn-w btn-small btn-xiangqing">查看详情</a>
                        <a href="{:U( 'worker/detail', [ 'id'=> $v['id'] ] )}" class="m-btn-xiangqing"></a>
                    </div>
                </volist>
                <div class="page"> {$_page} </div>
            </empty>
        </div>
</block>
<block name="script">
<script type="text/javascript">
    //'index-nav-show'
    (function() {
        var headerMenu = $('.header-menu');
        $('.icon-nav-menu').click(function(){
            headerMenu.addClass('menuShow');
        });
        $('.icon-nav-close').click(function(){
            headerMenu.removeClass('menuShow');
        });

        var setHeader = function() {
            var st = $(window).scrollTop();
            if(st > 0) {
                $('.header-pc').removeClass('header-transparent');
            } else {
                $('.header-pc').addClass('header-transparent');
            }
        };
        setHeader();
        $(window).scroll(function() {
            setHeader();
        });
    })();
</script>
</block>